<?php

namespace Home\Model;

use Think\Model;
use Think\Model\RelationModel;

class ProductModel extends RelationModel
{

    protected $_link = array(
        'mapping_type' => self::HAS_MANY,
        'class_name'  => 'Product',
        'foreign_key'  => 'order_id',
    );
}